<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3D位移转换</title>
    <style>
        .box{
            margin-top: 100px;
            perspective: 100px;
        }
        .box .row{
            margin: 0px auto;
            width: 300px;
            height: 300px;
            background-color: red;
        }
        .box .row:hover{
            transform: translate3d(100px, 100px, -100px);
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="row"></div>
    </div>
</body>
</html>